import 'package:dependencies_examples/generated/json/base/json_field.dart';
import 'package:dependencies_examples/generated/json/example_entity.g.dart';
import 'dart:convert';
export 'package:dependencies_examples/generated/json/example_entity.g.dart';

@JsonSerializable()
class ExampleEntity {
	late String name;
	late bool sex;
	late int age;

	ExampleEntity();

	factory ExampleEntity.fromJson(Map<String, dynamic> json) => $ExampleEntityFromJson(json);

	Map<String, dynamic> toJson() => $ExampleEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}